import request from '@/utils/request';

export class DictItemApi {

    static permission = {
        findPage: '/system/dict/findItemPage',
        findById: '/system/dict/findItemById',
        save: '/system/dict/saveItem',
        update: '/system/dict/updateItem',
        delete: '/system/dict/deleteItem',
    };

    static findPage(params) {
        return request({
            url: this.permission.findPage,
            method: 'post',
            data: params
        });
    };

    static findById(params) {
        return request({
            url: this.permission.findById,
            method: 'post',
            data: params
        });
    };

    static save(params) {
        return request({
            url: this.permission.save,
            method: 'post',
            data: params
        });
    };

    static update(params) {
        return request({
            url: this.permission.update,
            method: 'post',
            data: params
        });
    };

    static delete(params) {
        return request({
            url: this.permission.delete,
            method: 'post',
            data: params
        });
    };
}
